package Text_18;

public class myCode {
	public static void main(String[] agrs) {
//		Master master = new Master("king~");
//		Dog dog = new Dog("旺财~");
//		Bone bone= new Bone("骨头~");
//		master.feed(dog,bone);
//		Master master1 = new Master("Wang~");
//		Cat cat = new Cat("汤姆~");
//		Fish fish = new Fish("黄花鱼~");
//		master1.feed(cat, fish);
		
		Master master = new Master("king");
		Food food = new Food("黄花鱼");
		Cat cat = new Cat("汤姆");
		master.feed(cat, food);
		cat.shout();
		Food food1 = new Food("骨头");
		Dog dog = new Dog("小黑");
		master.feed(dog, food1);
		dog.shout();
		
	}
}
